

<script src="web/assets/plugins/bootstrap-select2/select2.min.js" type="text/javascript"></script>
<script src="web/assets/plugins/jquery-datatable/js/jquery.dataTables.min.js" type="text/javascript" ></script>
<script src="web/assets/js/table_configuracion.js" type="text/javascript"></script>
<script src="./fuentes/view/cupon/js/script_ajax_cupon.js" type="text/javascript"></script>
<div class="clearfix"></div>
<div class="content">  
    <div class="row">


                <div class="col-md-12">
                    <div class="grid simple ">
                        
                        <div class="grid-body no-border">
                            <h4>Lista de  <span class="semi-bold">Cupones</span></h4>
                           
                            <br>
                            <table class="table table-hover table-bordered no-more-tables" id="cuponesTABLE">
                                <thead>
                                    <tr>
                                        <th class="text-center" style="width:1%">ID</th>
                                        <th class="text-center" style="width:12%">Persona</th>
                                        <th class="text-center" style="width:22%">Sorteo</th>
                                        <th class="text-center" style="width:6%">Fecha Generada</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach ($cupones as $dato) {
                                        $date = new DateTime($dato["fecha_sorteo"]);
                                        ?>
                                        <tr>
                                            <td class="text-center"><?php echo $dato['id']; ?></td>
                                            <td class="text-left"><?php echo $dato['apenom'] . " - " . $dato['documento']; ?></td>
                                            <td class="text-left"><?php echo $dato['nombre']. " - " .  $date->format('d-m-o'); ?></td>
                                            <td class="text-center"><?php echo $dato['fecha_hora']; ?></td>
                                        </tr>
                                    <?php } ?>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

    </div>
</div>